package GUI.MarketingEmployee;

import javax.swing.JPanel;
import javax.swing.JLabel;
import javax.swing.JTextField;
import javax.swing.JButton;

import java.awt.Font;
import java.awt.event.ActionListener;

public class AddContactCustomerPnl extends JPanel {
	public JTextField textFieldCusId;
	public JTextField textFieldDate;
	public JTextField textFieldStartTime;
	public JTextField textFieldDesc;
	public JButton btnAddContactDetails;
	private JLabel lblEndTime;
	public JTextField textFieldEndTime;
	private JLabel lblEmployeeId;
	public JTextField textFieldEmpId;
	
	public AddContactCustomerPnl() {
		setLayout(null);
		
		btnAddContactDetails = new JButton("Add Contact");
		btnAddContactDetails.setBounds(162, 262, 106, 23);
		add(btnAddContactDetails);
		
		JLabel lblNewLabel = new JLabel("Customer Id:");
		lblNewLabel.setBounds(38, 86, 83, 20);
		add(lblNewLabel);
		
		textFieldCusId = new JTextField();
		textFieldCusId.setBounds(131, 86, 100, 20);
		add(textFieldCusId);
		textFieldCusId.setColumns(10);
		
		JLabel lblNewLabel_1 = new JLabel("Date:");
		lblNewLabel_1.setBounds(38, 142, 42, 20);
		add(lblNewLabel_1);
		
		textFieldDate = new JTextField();
		textFieldDate.setBounds(131, 142, 100, 20);
		add(textFieldDate);
		textFieldDate.setColumns(10);
		
		textFieldStartTime = new JTextField();
		textFieldStartTime.setColumns(10);
		textFieldStartTime.setBounds(131, 173, 100, 20);
		add(textFieldStartTime);
		
		JLabel lblTime = new JLabel("Start Time:");
		lblTime.setBounds(38, 173, 61, 20);
		add(lblTime);
		
		JLabel lblDescription = new JLabel("Description:");
		lblDescription.setBounds(276, 86, 66, 20);
		add(lblDescription);
		
		textFieldDesc = new JTextField();
		textFieldDesc.setBounds(277, 114, 200, 58);
		add(textFieldDesc);
		textFieldDesc.setColumns(10);
		
		
		
		JLabel lblAddContactClient = new JLabel("Add Contact Customer");
		lblAddContactClient.setFont(new Font("Tahoma", Font.BOLD, 13));
		lblAddContactClient.setBounds(145, 14, 178, 35);
		add(lblAddContactClient);
		
		lblEndTime = new JLabel("End Time:");
		lblEndTime.setBounds(38, 204, 61, 14);
		add(lblEndTime);
		
		textFieldEndTime = new JTextField();
		textFieldEndTime.setColumns(10);
		textFieldEndTime.setBounds(131, 201, 100, 20);
		add(textFieldEndTime);
		
		lblEmployeeId = new JLabel("Employee Id:");
		lblEmployeeId.setBounds(38, 116, 83, 20);
		add(lblEmployeeId);
		
		textFieldEmpId = new JTextField();
		textFieldEmpId.setColumns(10);
		textFieldEmpId.setBounds(131, 117, 100, 20);
		add(textFieldEmpId);

	}
	public void addController(ActionListener controller){
		System.out.print("Add Contact Client->Add controller");
		btnAddContactDetails.addActionListener(controller);
	}
}
